package com.ruoyi.common.config.oss;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OssContext {

     private static OssConfig ossConfig;

     @Autowired
     public OssContext(OssConfig ossConfig){
         OssContext.ossConfig=ossConfig;
     }

    public static String getEndpoint() {
        return ossConfig.getEndpoint();
    }

    public static String getAccessKeyId() {
        return ossConfig.getAccessKeyId();
    }

    public static String getAccessKeySecret() {
        return ossConfig.getAccessKeySecret();
    }

    public static String getBucket() {
        return ossConfig.getBucket();
    }

    public static String getFilePath() {
        return ossConfig.getFilePath();
    }



}
